﻿#region File Description
// --------------------------------
// <copyright file="SoundEffectsCollection.cs" company="Faculty of Information Technology, Czech Technical University in Prague">
//     This document is shared by Microsoft Public License (MS-PL)
//     For further details please see http://msdn.microsoft.com/en-us/library/ff648068.aspx or license.txt.
// </copyright>
// <author>Vladislav Richter</author>

// <email>richtvl2@fit.cvut.cz</email>

// <date>9. 11. 2011 22:22:37</date>

// <summary>
// 
// </summary>
// ------------------------------------------------------------------------------------------------------
#endregion
using System.Collections.Generic;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;

namespace ExternalClasses.Sounds
{
    public class SoundEffectsCollection
    {
        private SoundEffects soundEffects;
        public Dictionary<string, SoundEffect> Effects;

        public SoundEffectsCollection(ContentManager Content)
        {
            this.Effects = new Dictionary<string, SoundEffect>();
            this.soundEffects = Content.Load<SoundEffects>("SoundEffects\\Soundeffects");
            for (int i = 0; i < this.soundEffects.Sounds.Count; i++)
            {
                this.Effects.Add(this.soundEffects.Sounds[i].Name, Content.Load<SoundEffect>(this.soundEffects.Sounds[i].Path));
            }
        }
    }
}
